import 'package:flutter/material.dart';
import 'package:flutter_sensor_backend/assets/color.dart';
import 'package:flutter_sensor_backend/component/myleading.dart';
import 'package:flutter_sensor_backend/component/sensor_preview.dart';
import 'package:flutter_sensor_backend/page/data_collect/send_data.dart';

class DataCollect extends StatefulWidget {
  const DataCollect({super.key});

  @override
  State<DataCollect> createState() => _DataCollectState();
}

class _DataCollectState extends State<DataCollect> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: const MyLeading(),
        title: Text(
          "数据采集",
          style: TextStyle(
            color: os_black,
            fontSize: 15,
            fontWeight: FontWeight.bold,
          ),
        ),
      ),
      body: ListView(
        children: [
          SensorPreview(),
          PushData(),
        ],
      ),
    );
  }
}
